package com.zzw.mvvm.base.recyclebase.slidehelper;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

public class ScrollFlagRecycleView extends RecyclerView {
    boolean sc_flag = false;

    public ScrollFlagRecycleView(@NonNull Context context) {
        super(context);
    }

    public ScrollFlagRecycleView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public ScrollFlagRecycleView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent e) {
        Log.i(" ","onInterceptTouchEvent=="+e.getAction());
//        if (sc_flag) {
//            return false;
//        } else {
//            return super.onInterceptTouchEvent(e);
//        }
        return super.onInterceptTouchEvent(e);
    }


}
